package com.xhx.componet;

import java.math.BigDecimal;

import org.springframework.stereotype.Component;

import com.xhx.context.FlowContext;
import com.yomahub.liteflow.core.NodeComponent;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component("fixCmp")
public class FixCmp extends NodeComponent {
    @Override
    public void process() throws Exception {
        FlowContext context = this.getContextBean(FlowContext.class);
        context.setRealAmount(context.getAmount().multiply(BigDecimal.valueOf(1.5)));
    }
}
